package cn.webrx;

import java.util.List;

public class Lambda2 {
    public static void main(String[] args) {
        List<String> list = List.of("java", "php", "mysql","javascript","java17");
        list.forEach(e->System.out.println(e));
        list.forEach(System.out::println);
        list.forEach(e->{
            if(e.contains("java")){
                System.out.println(e);
            }
        });

        System.out.println("-----------------------------------");
        list.stream().filter(e->e.contains("java")).forEach(System.out::println);
    }
}
